home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 for Intel / NeXTSTEP 3.2 for Intel.iso / NextLibrary / Documentation / Sybase / DBLIB / Section2 / dbprhead.nr < prev    next >
Encoding:
Text File  |  1993-04-22  |  1.1 KB  |  50 lines

  1. .Na "dbprhead" 
  2. .Aa
  3. .Fu
  4. Print the column headings for rows returned from \*S.
  5. .Ih "results row column headings, printing"
  6. .Ih "row column headings, printing"
  7. .Ih "column headings, printing"
  8. .Ih debugging
  9. .Sy
  10. .Sf "extern int DbColwidth;"
  11. .Sf "void dbprhead(dbproc)"
  12. .Sp "DBPROCESS" "*dbproc"
  13. .Co
  14. .Bl
  15. This routine displays, on the default output device and in a default format,
  16. the column headings
  17. for a set of query results.
  18. The format is compatible with the format used by
  19. .I dbprrow().
  20. .Bl
  21. The application can call
  22. \f2dbprhead()\f1 once
  23. .I "dbresults()"
  24. returns SUCCEED.
  25. .Bl
  26. This routine is useful for debugging.
  27. .Bl
  28. \f3Note for Macintosh programmers:\f1  Because \f2dbprhead()\f1 calls \f2printf()\f1,
  29. it is valid only in an MPW Tool.
  30. .Bz
  31. .Pa
  32. .Pi dbproc
  33. A pointer to the DBPROCESS structure that provides the connection
  34. for a particular front-end/\*S process.  It contains all the
  35. information that \*L uses to manage communications and data between the
  36. front end and \*S.
  37. .Pi DbColwidth
  38. A global variable that
  39. .I dbprhead()
  40. uses to calculate the width of each output line.  It is initialized to 80
  41. by \*L.
  42. .in -.375i
  43. .Re
  44. None.
  45. .Sa
  46. dbbind,
  47. dbnextrow,
  48. dbprrow,
  49. dbresults
  50.